<?php
/**
 * Created by PhpStorm.
 * User: liaosp
 * Date: 2018/9/17
 * Time: 10:51
 * ......................我佛慈悲......................
 *                       _oo0oo_
 *                      o8888888o
 *                      88" . "88
 *                      (| -_- |)
 *                      0\  =  /0
 *                    ___/`---'\___
 *                  .' \\|     |// '.
 *                 / \\|||  :  |||// \
 *                / _||||| -卍-|||||- \
 *               |   | \\\  -  /// |   |
 *               | \_|  ''\---/''  |_/ |
 *               \  .-\__  '-'  ___/-. /
 *             ___'. .'  /--.--\  `. .'___
 *          ."" '<  `.___\_<|>_/___.' >' "".
 *         | | :  `- \`.;`\ _ /`;.`/ - ` : | |
 *         \  \ `_.   \_ __\ /__ _/   .-` /  /
 *     =====`-.____`.___ \_____/___.-`___.-'=====
 *                       `=---='
 *
 *..................佛祖开光 ,永无BUG...................
 */

namespace core\lib\route;


class Route
{
    public static function selectRouteModel(){
        $appConfig = require THINKSP . '/config/server.php';
        if($appConfig['WhereToUse'] =='apache'){
            $route = new \core\lib\route\RouteApche();
        }else{
            $route = new \core\lib\route\RouteSwoole();
        }
        return $route;
    }

}